﻿using System.IO;

namespace RxxAdmin.Common.AppConfig
{
    public class AppSecretConfig
    {
        private static string Audience_Secret = AppSettings.Jwt.SecretKey;


        public static string Audience_Secret_String => InitAudience_Secret();


        private static string InitAudience_Secret()
        {
            return Audience_Secret;
        }

        private static string DifDBConnOfSecurity(params string[] conn)
        {
            foreach (var item in conn)
            {
                try
                {
                    if (File.Exists(item))
                    {
                        return File.ReadAllText(item).Trim();
                    }
                }
                catch (System.Exception) { }
            }

            return "";
        }

    }

}
